package com.ruoyi.basedata.domain;

import lombok.Data;

/**
 * redis 对应值
 */
@Data
public class RedisKeyName {
    public static Integer backupDB_HistoricalData_days = 1;
    public static Integer backupDB_FreezeForDayData_days = 16;
    public static Integer backupDB_FreezeForMonthData_months = 0;
    public static Integer backupDB_FreezeForYearData_years = 3;
    public static String WaitingPacketInsert = "waitingPacketInsert_";//解析好待插入的数据
    public static String InsertOver = "InsertOver_";//插入完成的数据流
    public static String exceptions = "exceptions_";
    public static String exceptions_TerminalDetailData = "FaultTerminalDetailData"; //档案异常
    public static String backupDB_HistoricalData = "backupDB_HistoricalData_";//reids中历史数据60天
    public static String backupDB_FreezeForDayData = "backupDB_FreezeForDayData_";//redis中日冻结60天
    public static String backupDB_FreezeForMonthData = "backupDB_FreezeForMonthData_";//redis中月用量
    public static String backupDB_FreezeForYearData = "backupDB_FreezeForYearData_";//redis中年用量
    public static String backupDB_WarningData = "backupDB_WarningData_";//redis中预警数据
    public static String backupDB_PositioningData = "backupDB_PositioningData_";//redis位置信息
    public static String waitingSynchronousDB_HistoricalData = "waitingSynchronousDB_HistoricalData_";//历史数据同步到数据库
    public static String waitingSynchronousDB_FreezeForDay = "waitingSynchronousDB_FreezeForDay_";//日冻结数据同步到数据库
    public static String waitingSynchronousDB_positioning = "waitingSynchronousDB_positioning_";//位置数据同步到数据库
    public static String waitingSynchronousDB_warning = "waitingSynchronousDB_warning_";//预警数据同步到数据库

    public static String terminalInfo = "TerminalDetailData_";//存放设备信息的key值
    public static String concentratorInfor = "concentratorDetail_";
//    public static String terminalDbInfo = "terminalDetail"; //存放大表设备信息的key值
    public static String terminalDbInfo = "terminalDb_"; //存放大表设备信息的key值
    public static String initialSynchronizationFlag_k = "InitialSynchronizationFlag";//表信息、历史数据、日用量、月用量、年用量是否同步到redis中。
    public static String initialSynchronizationFlag_v = "1";//0:未同步，1：同步
    public static String NettyRedisCallBack = "dggprs_callbackurl_";//从106reids获取netty数据包
    public static Integer FromParseRedis = 1;//121的redis的第几个数据库
    public static Integer FromNettyRedis = 0;//选择106redis 的数据库\120测试redis的第几个数据库
    public static String NettyRedisConnectionHost = "NettyRedisConnectionHost";//120、106 redis在website config中保存的数据库连接名称
    public static String RedisExchangeHosts = "RedisExchangeHosts";//121
}
